import ISceneState from "../framework/ISceneState";
import { SceneType } from "../framework/SceneManager";
import { UIManager, UI_CONFIG, UI_TRANSITION_TYPE } from "../framework/UIManager";

const { ccclass, property } = cc._decorator;

@ccclass
export default class LoginSceneState extends ISceneState {

    /**
     *
     */
    constructor() {
        super();
        this.stateName = SceneType.Login;
    }

    enterScene() {
        console.log("login game scene");
        UIManager.Instance.show(UI_CONFIG.LoginView, {
            transType: UI_TRANSITION_TYPE.FadeIn,
            // tweenFunc: Function,
            duration: 0.2,
        });
    }
    
    exitScene() {
        console.log("login game scene");
    }
}
